<%--
  Created by IntelliJ IDEA.
  User: melt
  Date: 2021/10/29
  Time: 21:01
  To change this template use File | Settings | File Templates.
--%><%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
    <title>管理员登录</title>
    <!-- Meta tags -->
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">

    <!-- Google fonts -->
    <link href="//fonts.googleapis.com/css2?family=Kumbh+Sans:wght@300;400;700&display=swap" rel="stylesheet">

    <!-- CSS Stylesheet -->
    <c:set var="path" value="${pageContext.request.contextPath}"></c:set>
    <link rel="stylesheet" href="${path}/css/userLoginStyle.css" type="text/css" media="all" />

    <!-- fontawesome v5-->
    <script src="https://kit.fontawesome.com/af562a2a63.js" crossorigin="anonymous"></script>

</head>
<style>
    .fullscreenvideo {
        position: absolute;
        top: 50%;
        left: 50%;
        min-width: 100%;
        min-height: 100%;
        width: auto;
        height: auto;
        z-index: -100;
        -webkit-transform: translateX(-50%) translateY(-50%);
        transform: translateX(-50%) translateY(-50%);
        -webkit-transition: 1s opacity;
        transition: 1s opacity;
    }

    .videocontainer{
        position: fixed;
        width: 100%;
        height: 100%;
        overflow: hidden;
        z-index: -100;
    }

    .videocontainer:before{
        content: "";
        position: absolute;
        width: 100%;
        height: 100%;
        display: block;
        z-index: -1;
        top: 0;
        left: 0;
        background: rgba(25,29,34,.10);
    }
    .usercolor{
        color: white;
    }
</style>
<body>
<div class="videocontainer">
    <video class="fullscreenvideo" poster="__ROOT__/Themes/tdt/Asset/images/loginbg.jpg" id="bgvid" playsinline="" autoplay="autoplay" muted="muted" loop="loop">
        <source src="${path}/images/product/111.mp4" type="video/mp4">
    </video>
</div>
    <div class="signinform">
        <h1 class="usercolor">用户登录</h1>
        <!-- container -->
        <div class="container">
            <!-- main content -->
            <div class="w3l-form-info">
                <div class="w3_info">
                    <h2>登录</h2>
                    <form action="${pageContext.request.contextPath}/super/login" method="post">
                        <div style="
                        width: 300px;margin: 0 auto;text-align: center;color: red">${msg}</div>
                        <div class="input-group">
                            <span><i class="fas fa-user" aria-hidden="true"></i></span>
                            <input type="text" name="username" value=""   lay-verify="required" placeholder="请输入管理员账号" autocomplete="off" class="layui-input">
                        </div>
                        <div class="input-group">
                            <span><i class="fas fa-key" aria-hidden="true"></i></span>
                            <input type="password" name="password" value=""   lay-verify="required" placeholder="请输入密码" autocomplete="off" class="layui-input">
                        </div>
                        <div class="inputbox">
                        <input type="text" name="validCode"   lay-verify="required" placeholder="请输入验证码" autocomplete="off" class="layui-input">
                        <img src="${path}/valid" onclick="change(this)" alt="点击验证码可刷新" class="vierfy-code">
                        <i class="l"></i>
                    </div>
                        <button class="btn btn-primary btn-block" type="submit"> 登录</button>
                    </form>
                    </div>
                </div>
            </div>
            <!-- //main content -->
        </div>
    </div>
</body>
<script>
    function change(o){
        o.src = "${path}/valid?time="+new Date();
    }
</script>
</html>